//
//  AppDelegate.m
//  Weibo
//
//  Created by 宋洋 on 15/2/28.
//  Copyright (c) 2015年 suibian. All rights reserved.
//

#import "AppDelegate.h"
#import "SBTabBarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    //初始化自定义Log
    
    // Standard lumberjack initialization
    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    
    // And we also enable colors
    [[DDTTYLogger sharedInstance] setColorsEnabled:YES];
    
    // 2.创建Windows
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    
    // 3.创建设置跟控制器
    //UITabBarController *tabBarVC = [[UITabBarController alloc]init];
    SBTabBarController *tabBarVC = [[SBTabBarController alloc]init];
    self.window.rootViewController = tabBarVC;
    
    // 显示Windows
    [self.window makeKeyAndVisible];
    
    return YES;
}



@end
